﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using MpSoft.Library.DTO;
using MpSoft.Library.BUSS;
using MpSoft.Basic.DataAccess;
using MpSoft.Library.CommonLibrary;

namespace MpSoft.Library.CommonLibrary
{
    public class Extends
    {
        public static string GetExtends()
        {
            return ConfigurationManager.AppSettings["Extends"].ToString();
        }
        public static string SubString(string str, int size)
        {
            if (str.Length > size)
            {
                string rs = str.Substring(0, size);
                return rs.Substring(0, rs.LastIndexOf(' ')) + "...";
            }
            else
                return str;
        }

    }
}
